package com.xunsiya.system.vo;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 用户表
 *
 * @author linqy
 */
public class User {

    /**
     * 登录用户常量
     */
    public static final String SYS_LOGIN_INFO = "login_user";

    private Integer id;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 密码
     */
    private String password;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 单位id
     */
    private Integer companyId;

    /**
     * 手机
     */
    private String mobilephoneNumber;

    /**
     * 所属分组
     */
    private Integer groupId;

    /**
     * 所属分组vo
     */
    private GroupInfo groupInfo;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 角色id
     */
    private Integer roleId;

    /**
     * 创建日期
     */
    private Date createTime;

    /**
     * 失效日期
     */
    private Date expireTime;

    /**
     * 菜单权限
     */
    private Map privilege;

    private String companyName;
    /**
     * 注册校验码
     */
    private String checkCode;
    /**
     * 所有子群组id列表
     * @return
     */
    public List<Integer> subCompanyIdList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getMobilephoneNumber() {
        return mobilephoneNumber;
    }

    public void setMobilephoneNumber(String mobilephoneNumber) {
        this.mobilephoneNumber = mobilephoneNumber;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public GroupInfo getGroupInfo() {
        return groupInfo;
    }

    public void setGroupInfo(GroupInfo groupInfo) {
        this.groupInfo = groupInfo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Map getPrivilege() {
        return privilege;
    }

    public void setPrivilege(Map privilege) {
        this.privilege = privilege;
    }

    public List<Integer> getSubCompanyIdList() {
        return subCompanyIdList;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public void setSubCompanyIdList(List<Integer> subCompanyIdList) {
        this.subCompanyIdList = subCompanyIdList;
    }
}
